outfile=out.txt
activenode=active.txt
./MultiHopLeach >$outfile
cat $outfile | grep "Active node count" >$activenode
cat $activenode | awk '{ print $3,$7,$11,$16,$18,$20}' >data.txt


gnuplot -e ""  plotall
#gnuplot -e ""  plotpackettobs
#gnuplot -e ""  plotpackettoch
#gnuplot -e ""  plotchcount
#gnuplot -e ""  plotalive
#gnuplot -e ""  plotenergy
#gnuplot -e ""  plotalivecombined
#gnuplot -e ""  plotall
